$(function(){
    $.getJSON('../json/ownNote.json',function(response){
        var recordCount=0   //总记录数
        var pageSize=response.length      //每页显示记录数
        var pageCount=0     //总页数
        var pageIndex=0     //当前页的索引值
    var strHTML=''
    for(var i=0 ; i<pageSize ; i++){
        if(response[i]){
            strHTML+=`<li onclick="window.open('ontesChild.html')">
            <a href="" class="cook-img">
                <img src="${response[i].image}" alt="">
            </a>
            <br/>
            <a href="">${response[i].name}</a>
            <p>
                <img src="${response[i].userimg}" alt="">
                <span>${response[i].username}</span>
            </p>
        </li> `
        }
    }
    $("#products").html(strHTML)
    })
})
